package com.qianyu.project.mapper;

import com.qianyu.project.entity.LeasePayment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 租赁付款 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface LeasePaymentMapper extends BaseMapper<LeasePayment> {
    @Select("select max(id) from lease_payment where year(apply_date)=year(curdate())")
    String getMaxid();
}
